<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<script>
			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
				CSS.supports('top: constant(a)'))
			document.write(
				'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
				(coverSupport ? ', viewport-fit=cover' : '') + '" />')


			let inactivityTimer = null;
			const INACTIVITY_TIMEOUT = 60000 * 3; // 3分钟的毫秒数

			// 重置不活跃计时器
			function resetInactivityTimer() {
				console.log('hhh ')
				if (inactivityTimer) {
					clearTimeout(inactivityTimer);
				}
				inactivityTimer = setTimeout(function() {
					if (window.location.pathname !== '/jtysms/') {
						window.location.href = '/jtysms/'
					}
				}, INACTIVITY_TIMEOUT);
			}


			// 添加交互事件监听器
			function setupInteractionListeners() {
				const events = ['touchstart', 'touchmove', 'touchend', 'scroll', 'click'];
				events.forEach(event => {
					document.addEventListener(event, resetInactivityTimer);
				});
			}

			window.onload = function() {
				setupInteractionListeners()
			}
			// 监听来自父级的消息
			window.addEventListener('message', resetInactivityTimer);
		</script>
		<title></title>
		<!--preload-links-->
		<!--app-context-->
	</head>
	<body>
		<div id="app"><!--app-html--></div>
		<script type="module" src="/main.js"></script>
	</body>
</html>